package com.lagou.service;

import com.lagou.dao.AdminDao;
import com.lagou.domin.Admin;
import com.lagou.domin.Student;

// 提供查询管理员用户名密码是否正确以及添加学生的功能
public class AdminService {
    public boolean check(Admin admin){
        return new AdminDao().checkAdmin(admin);
    }

    public void add(Student student){
        new AdminDao().addStudent(student);
    }
}
